package com.sen.mapper;

import com.sen.pojo.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.Collection;

//员工mapper
@Mapper
@Repository
public interface EmployeeMapper {

    //增加一个员工
    int save(Employee employee);

    //查询全部员工信息
    Collection<Employee> getAll();

    //通过id查询员工
    Employee getEmployeeById(Integer id);

    //通过id删除员工
    int deleteEmployeeById(Integer id);

    //通过id更新员工
    int updateEmployeeById(Employee employee);
}
